package com.zhengshang.api.service.impl;

import com.zhengshang.api.domain.AppThirdColumn;
import com.zhengshang.api.mapper.AppThirdColumnMapper;
import com.zhengshang.api.service.IAppThirdColumnService;
import com.zhengshang.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author zhengshang
 * @date 2022-04-10
 */
@Service
public class AppThirdColumnServiceImpl implements IAppThirdColumnService
{
    @Autowired
    private AppThirdColumnMapper appThirdColumnMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param thirdColumnId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public AppThirdColumn selectAppThirdColumnById(Long thirdColumnId)
    {
        return appThirdColumnMapper.selectAppThirdColumnById(thirdColumnId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param appThirdColumn 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AppThirdColumn> selectAppThirdColumnList(AppThirdColumn appThirdColumn)
    {
        return appThirdColumnMapper.selectAppThirdColumnList(appThirdColumn);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param appThirdColumn 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAppThirdColumn(AppThirdColumn appThirdColumn)
    {
        appThirdColumn.setCreateTime(DateUtils.getNowDate());
        return appThirdColumnMapper.insertAppThirdColumn(appThirdColumn);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param appThirdColumn 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAppThirdColumn(AppThirdColumn appThirdColumn)
    {
        appThirdColumn.setUpdateTime(DateUtils.getNowDate());
        return appThirdColumnMapper.updateAppThirdColumn(appThirdColumn);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param thirdColumnIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteAppThirdColumnByIds(Long[] thirdColumnIds)
    {
        return appThirdColumnMapper.deleteAppThirdColumnByIds(thirdColumnIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param thirdColumnId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteAppThirdColumnById(Long thirdColumnId)
    {
        return appThirdColumnMapper.deleteAppThirdColumnById(thirdColumnId);
    }
}
